package com.sl.au.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "sl_wcsi_divisionManager")
public class DivisionManager extends Root{
	@ManyToOne 
	@JoinColumn(nullable = true,name="manager")
	private User manager;//管理人
	
	private String phoneNumber;//联系电话
	
	@OneToOne
	@JoinColumn(name = "division",nullable = true)
	private Division division;//区域层级

	public User getManager() {
		return manager;
	}

	public void setManager(User manager) {
		this.manager = manager;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public Division getDivision() {
		return division;
	}

	public void setDivision(Division division) {
		this.division = division;
	}
}
